Gets the value of the specified field (column) as a byte array.
'Declaration
Public Overloads Overrides NotOverridable Function GetBytes( _
ByVal As Integer, _
ByVal As Long, _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer _
) As Long
'Usage
Dim instance As TdDataReader
Dim ordinal As Integer
Dim dataOffset As Long
Dim buffer() As Byte
Dim bufferOffset As Integer
Dim length As Integer
Dim value As Long
value = instance.GetBytes(ordinal, dataOffset, buffer, bufferOffset, length)
public override long GetBytes(
int ,
long ,
byte[] ,
int ,
int
)
public:
int64 GetBytes(
int ,
int64 ,
array<byte>^ ,
int ,
int
) override
Parameters
- ordinal
- Column ordinal (see TdDataReader.GetOrdinal).
- dataOffset
- The index within the field from which to begin the read operation.
- buffer
- The buffer into which to copy the field.
- bufferOffset
- The index for the buffer to begin the copy operation.
- length
- The maximum length to copy into the buffer.
Return Value
Returns the number of bytes read and stored into the buffer.
Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2